import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

/**
 * trieda obsahujuca vstupne formaty a definicie pomenavanych skupin regexu
 * @author cerko
 *
 */
public class InputFormatData {
	
	//dvojice variable a ich regex definicie eg. author = (?<author>.*)
	private Map<String, String> capturingGroupPatterns;
	//nepouzite zatial malo obsahovat vysledky
	private Map<String, String> capturingGroupResults;
	
	//cely regex pattern aj s nevyhodnotenymi premennymi
	private String formatPattern;
	
	public InputFormatData(){
		
		capturingGroupPatterns = new HashMap<String, String>();
		capturingGroupResults = new HashMap<String, String>();
		
	}
	
	public void addCapturingGroupPattern(Entry<String, String> entry){
		capturingGroupPatterns.put(entry.getKey(), entry.getValue());
	}

	public Map<String, String> getCapturingGroupPatterns() {
		return capturingGroupPatterns;
	}

	public Map<String, String> getCapturingGroupResults() {
		return capturingGroupResults;
	}

	public String getFormatPattern() {
		return formatPattern;
	}

	public void setFormatPattern(String formatPattern) {
		this.formatPattern = formatPattern;
	}
	
	
}
